# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=dos2unix
pkgver=7.5.1
pkgrel=0
pkgdesc="Text file format converters"
url="https://waterlan.home.xs4all.nl/dos2unix.html"
arch="all"
license="BSD-2-Clause"
checkdepends="gettext-dev perl-utils"
subpackages="$pkgname-doc"
source="https://waterlan.home.xs4all.nl/dos2unix/dos2unix-$pkgver.tar.gz"

build() {
	make ENABLE_NLS= LDFLAGS_USER="$LDFLAGS"
}

check() {
	make check
}

package() {
	make prefix=/usr \
		docsubdir=$pkgname \
		ENABLE_NLS= \
		DESTDIR="$pkgdir" \
		install
}

sha512sums="
733d163fff4effdf8acb382abec9bcd23f594fa17502e9dde2f24d3326aeb7653eee353bef812090ab8dc055136d236b40c2f778deea4ac026c2eed471e763b5  dos2unix-7.5.1.tar.gz
"
